Skip to main content

Get Message Replies

AutomatR.MicrosoftTeams.Activities.GetMessageReplies

The "Get Message Replies" activity in AutomatR for Microsoft Teams retrieves replies associated with a specific message in Teams. This functionality allows for a comprehensive analysis of conversation threads, providing insights into the ongoing discussions within a channel. The activity returns a collection page (ICollectionPage<ChatMessage>) for managing and accessing chat messages.

Properties

NameDescription
Input
Channel IDSpecifies the Channel ID for retrieving message replies. String variables containing the Channel ID.
Team IDSpecifies the Team ID for retrieving message replies. String variables containing the Team ID.
Message IDSpecifies the Message ID for which replies should be retrieved. String variables containing the Message ID.
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Message Replies" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs a collection page (ICollectionPage<ChatMessage>) containing the retrieved message replies. This collection includes information about each reply, such as sender details, content, and timestamp.

How to use:

  1. Drag and drop the "Get Message Replies" activity onto the workflow.
  2. Configure the properties by specifying the Channel ID, Team ID, and Message ID for which you want to retrieve replies.
  3. Optionally, configure the delay.
  4. Execute the workflow to retrieve the message replies within Microsoft Teams.

Example: Consider an example where the "Get Message Replies" activity is used to retrieve replies for a message with the Message ID "message123" in a Teams channel with the Channel ID "channel456" and Team ID "team789":

Get Message Replies:
Channel ID: "channel456"
Team ID: "team789"
Message ID: "message123"
Result: messageReplies

In this example, the activity retrieves the replies associated with the specified message within the Teams channel. The resulting messageReplies collection page contains information about each reply for further processing within the workflow.